import { withInstall } from '@ibiz-template/vue3-util';
import { App } from 'vue';
import { registerPanelItemProvider } from '@ibiz-template/runtime';
import { HeaderSculpturesProvider } from './provider';
import { HeaderSculptures } from './head-sculpture';

export const IBizHeaderSculptures = withInstall(
  HeaderSculptures,
  function (v: App) {
    v.component(HeaderSculptures.name, HeaderSculptures);
    registerPanelItemProvider(
      'LIST_ITEMRENDER_HEADER_SCULPTURES',
      () => new HeaderSculpturesProvider(),
    );
  },
);
